﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Web;

namespace MvcMedicalProvider.Models
{
    public class MedicalProviderDbContext : DbContext
    {
        public MedicalProviderDbContext()
            : base("MedicalProviderDbContext")
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }

        public DbSet<ProviderInfo> ProviderInfo { get; set; }
        public DbSet<ProviderDetails> ProviderDetails { get; set; }
        public DbSet<ProviderType> ProviderTypes { get; set; }
        public DbSet<ZipCode> ZipCodes { get; set; }
    }
}